// 记录当前所在目录
import { REMOVE_FOLDER, SET_FOLDER } from '../constant';

const intiValue = {};


export default function folder (prev = intiValue, action) {
  const {
    type,
    data
  } = action;
  switch (type) {
  case SET_FOLDER:
    return data
  case REMOVE_FOLDER:
    return {}
  default:
    return prev
  }
}
